/**
 * PackageDir: info.javafans.cdn.web.action
 * FileName: ShowActivityListAction.java
 * CreateDate: 2011-3-6 下午07:18:17
 * Copyright: Copyright (c) 2011 <br />
 * Company: fossd <br />
 * @author Yintao Xue
 * @version 1.0 2011-3-6
 */
package info.javafans.cdn.web.action;

import info.javafans.cdn.dao.ActivityDao;
import info.javafans.cdn.domain.Activity;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Project: CollegeDatingNetwork <br />
 * ClassName: ShowActivityListAction <br />
 * Description:  <br />
 */
public class ShowActivityListAction extends Action {

	@Override
	public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {

		List<Activity> activityList = ActivityDao.selectActivityList();
		request.setAttribute("activityList", activityList);
		ShowIndexAction.prepareDate(request, response);
		
		return "success";
	}
	
}
